package com.lin.service;

import java.util.List;

import com.lin.dao.BookDaoImpl;
import com.lin.dao.IBookDao;
import com.lin.vo.Book;

public class BookServiceImpl implements IBookService {
	private IBookDao bookDao=new BookDaoImpl();
	@Override
	public List<Book> findByAllBook() {
		return bookDao.findByAllBook();
	}
	@Override
	public List<Book> findByTypeBook(String bookType) {
		return bookDao.findByTypeBook(bookType);
	}
	@Override
	public Book findByIdBook(String bid) {
		return  bookDao.findByIdBook(bid);
	}
	@Override
	public void update(Book book) {
		bookDao.update(book);
	}
	@Override
	public void saveBook(Book book) {
		bookDao.saveBook(book);
		
	}
	@Override
	public List<Book> findByBookState() {
		// TODO Auto-generated method stub
		return bookDao.findByBookState();
	}

}
